package com.hmall.user.mapper;

import com.hmall.user.domain.po.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
* @author yangfeng
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2024-12-17 16:26:51
* @Entity com.hmall.user.domain.po.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {
    @Update("update user set balance = balance - ${totalFee} where id = #{userId}")
    void updateMoney(@Param("userId") Long userId, @Param("totalFee") Integer totalFee);

}




